const http = require("http"); const codes = require('http-status-codes'); const tools = require("./tools"); const rec = require("./shapes/rectangle");
class Rectangle { constructor(aWidth, aHeight) { this.width = aWidth; this.height = aHeight; } } function prn(o) { console.log(o.toString()); } exports.Rectangle = Rectangle; exports.prn = prn;
app.get("/", homeFct); app.get("/calc", calcFct);
URL | URL Path | Action |
---|---|---|
http://localhost:3000 | / | homeFct |
http://localhost:3000/calc | /calc | calcFct |